package com.itheima.sh.a_quckstart;

public class Student {
    String name;    //姓名
    double chinese; //语文成绩
    double math;    //数学成绩

    public void printTotalScore() {

        System.out.println(name+"总成绩是："+(chinese+math));
    }
    public void printAverageScore(){
        System.out.println(name+"该学生的平均成绩是："+(chinese+math)/2.0);

    }
}
